<?php 


$url = "https://home.rabbitpre.com/api/workbench/marketing/mydata/formList";

$parmas = ['appid'=>'20dc4607-b106-481c-8b0f-93cfedc6fd99','appType'=>'onepage',
	'pageNo'=>'1',
	'pageSize'=>'10',
	'startTime'=>'2021-05-11%2000%3A00%3A00',
	'endTime'=>'2021-05-12%2023%3A59%3A59',
	'channels'=>'',
	'deptIds'=>''
];

$header = [

	'Cookie:rp=42f64ce5-8f4b-4e3a-8228-b5c12bbc6ebf; distinctid=42f64ce5-8f4b-4e3a-8228-b5c12bbc6ebf; _bl_uid=sjkUekX8dnvrdhsjgltXtzRzsR14; rp.sid=s%3Avy0pddQ_G8hJqpnpXBPZepTnfuDF5K_T.OMWJJsw8lZdrs8PArYIYbLCZKvnDv3NmY2ircp6qPuc; Hm_lvt_9ad3eedcbfcad678357018dda8c8c602=1620782392; c_visitid=2c89da28-8010-4049-a063-2536c4f51660; SSOToken=eyJjdHkiOiJqd3QiLCJhbGciOiJIUzI1NiJ9.RUVFMkYwODZBRjBDQTEwQ0ZFNThCRDZDQkM2Q0Q1NERDNDk2ODZDNEEwNjdDMkM2NUY3OTVDNjQwQjdDNTM4NDU2QjJGOUY4MTQ3QzNFQTgzRDlBMjhFMjZDMjIxNUVCNDRFMzEwNUI2OURENkNGQzZGRkM4MkY2OTAzNjlDQkY4MUY4QjUwQzBBMzc0RjkzODRDNjhEQTVBMTIwN0VDOTcyRjYyOUM3MzBDOTJFQ0E1OEQ2QTcyMDkxNjk1N0Q0MTM2RjRBNEJDRUY1MjNGMTc4MTNERjQzQzE0NzlDMTI5RkY1QjVFNjExQjAwNkJFRTVGOTQxOUJCNzIxRkU4RjREMEVGMjA0RjE0OUEzMTZGODRBNDk3MjY3MURGQTk4NDlBQ0JBQzU4MTU4RjVDMw.fm552dDZ3RXWFKNKrgKLOwKb4Be3XW5jPemQ5YkdfkU; rp.uid=92dded61a6664187fd7a878a164a4b311f45cd8f; audid=793899713438289920; renderer.sid=s%3AAEHWscMrYPyhMFTFy9HdwpFk1qWNM7ya.cDHJXXPkwETq13L27Qkb0jIQkV38tzfZoyee6IfFCHM; Hm_lpvt_9ad3eedcbfcad678357018dda8c8c602=1620784209'

];

$res = php_do_Url_GET($url,$parmas,$header);

echo '<pre>';

// var_dump($parmas);

var_dump($res);

echo '</pre>';





function php_do_Url_GET($url,$params=[],$headers=[]){ //Get get

		$url = "{$url}?" . http_build_query ($params);
		// echo $url;
		$ch = curl_init ();
		curl_setopt ( $ch, CURLOPT_URL, $url );
		curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
		curl_setopt ( $ch, CURLOPT_CUSTOMREQUEST, 'GET' );
		curl_setopt ( $ch, CURLOPT_TIMEOUT, 60 );
		//curl_setopt ( $ch, CURLOPT_POSTFIELDS, $params );
		curl_setopt ( $ch, CURLOPT_HTTPHEADER, $headers );
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		curl_setopt($ch, CURLOPT_SSLVERSION, false);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);


		$json_string = curl_exec ( $ch );

		$data = json_decode($json_string, true);

		curl_close ( $ch );

		return $data;
};


 ?>
